<?php

namespace app\common\model;

use think\Model;

class ActivityCategory extends Model
{
    protected $table = 'activity_categories';

    protected $pk = 'id';

    protected $createTime = 'created_at';
    
    protected $updateTime = 'updated_at';

    public function activity()
    {
    	return $this->hasMany('Activity', 'category_id');
    }

    public function type()
    {
    	return $this->hasMany('CategoryType', 'category_id');
    }
}
